package com.lct.returndemo;

public class ReturnDemo1 {
    public static void main(String[] args) {
        System.out.println("开始。。。");
        divide(10,5);
        System.out.println("结束。。。");
    }


    public static void divide(int a, int b){
        if(b == 0){
            System.out.println("您的参数不能是0");
            return;//跳出当前方法执行
        }

        int c =a / b;
        System.out.println(c);
    }
}
